<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello');

Route::post('user/register', 'user/save');
Route::post('user/password/chang/:id', 'user/changePas');
Route::get('user/sync', 'user/sync');
Route::post('user/login', 'user/login');
Route::post('user/create', 'user/create');
Route::get('user/remove/:id', 'user/delete');

Route::get('user/list', 'user/index');
Route::post('user/update/:id', 'user/update');

Route::post('template/create', 'template/save');
Route::post('template/update/:id', 'template/update');
Route::get('template/list', 'template/index');
Route::get('template/remove/:id', 'template/delete');

Route::post('message/push', 'template/pushMessage');
Route::get('message/count', 'template/messageCount');

Route::post('upload/add', 'upload/add');
Route::get('send_log/list', 'sendLog/index');
